<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||	
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws. 
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.). 
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations). 
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./site/public/browse.php, $Author:  $ */

    $oSecurityService = &App::getModuleService('Account', 'Security');
    /* @var $oSecurityService PhpFox_Mod_Account_ServiceSecurity */
    $oSecurityService->checkAccess('browse');

    //create tabs menu
    $aMenuItems = array(
    	array('title' =>App::format('menu.browse.all'),      'url' => App::makeUrl('public.browse', array('mode' => 'recent'))),
        array('title' => App::format('menu.browse.new'),      'url' => App::makeUrl('public.browse', array('mode' => 'new'))),
        array('title' => App::format('menu.browse.updated'), 'url' => App::makeUrl('public.browse', array('mode' => 'updated'))),
        array('title' => App::format('menu.browse.featured'), 'url' => App::makeUrl('public.browse', array('mode' => 'featured'))),
        array('title' => App::format('menu.browse.online'),    'url' => App::makeUrl('public.browse', array('mode' => 'online'))),
    );
    $aParams = array(
    	'sTemplate'     => 'TabbedMenu',
        'aMenuItems'    => $aMenuItems,
        'compare_param' => 'mode',
    );

    $oCompMenu = App::getModuleComponent('Menu', 'Menu', $aParams);
    $srcTabbedMenu = $oCompMenu->process();

    $oTpl = &App::getTemplate();
    $oTpl->assignSrc(array(
    	'srcTabbedMenu' => $srcTabbedMenu,
    ));
?>